package cn.dzh.service.impl;

import cn.dzh.mapper.RolesMapper;
import pojo.dto.RoleDTO;
import pojo.entity.Roles;
import cn.dzh.service.RolesService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * ClassName: RolesServiceImpl
 * Package: cn.dzh.service.impl
 */
@Service
@Slf4j
public class RolesServiceImpl implements RolesService {
    @Autowired
    private RolesMapper rolesMapper;
    @Override
    public ArrayList<RoleDTO> findByRoleId(Integer roleId) {

        return rolesMapper.RolesfindByRoleId(roleId);
    }
}
